package com.dai.design.liskovsutiution.bird;

/**
 * @author daijiyong
 */
public class Bird {
    double flySpeed;

    public void setSpeed(double speed) {
        flySpeed = speed;
    }

    public double getFlyTime(double distance) {
        return (distance / flySpeed);
    }
}
